package reflect;

import reflect.annotations.AutoRunClass;

/**
 * 反射机制访问注解
 */
public class ReflectDemo8 {
    public static void main(String[] args) throws ClassNotFoundException {
        Class cls = Class.forName("reflect.Person");

        if(cls.isAnnotationPresent(AutoRunClass.class)){
            System.out.println("被标注了！");
        }else{
            System.out.println("没有被标注！");
        }
    }
}
